package academic.concordia.bankofquebec.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;

@Entity
public class Bill implements Serializable {

	private static final long serialVersionUID = 1L;
	private String name;
	private String reference;
	private BillProvider billProvider;
	private Client client;
	private int providerId;
	
	@Id
	public String getReference() {
		return reference;
	}
	
	public void setReference(String reference) {
		this.reference = reference;
	}
	
	//@ManyToOne
	//@JoinColumn(name="billProvider")
	@Transient
	public BillProvider getBillProvider() {
		return billProvider;
	}
	
	public void setBillProvider(BillProvider billProvider) {
		this.billProvider = billProvider;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	
	@ManyToOne
	@JoinColumn(name="Client")
	public Client getClient() {
		return client;
	}
	
	public void setClient(Client client) {
		this.client = client;
	}

	public int getProviderId() {
		return providerId;
	}

	public void setProviderId(int providerId) {
		this.providerId = providerId;
	}
	
}
